package com.jk.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by dell on 2017/6/16.
 */
@Controller
@RequestMapping("free")
public class FreeController {

    @RequestMapping("hello")
    public ModelAndView hello() {
        ModelAndView mv = new ModelAndView();
        mv.addObject("name", "卢子豪");
        mv.setViewName("hello");
        return mv;
    }
}
